package com.zm.xiaohashu.api;

import com.zm.response.Response;
import com.zm.xiaohashu.constant.ApiConstants;
import com.zm.xiaohashu.model.req.AddNoteContentReqDTO;
import com.zm.xiaohashu.model.req.DeleteNoteContentReqDTO;
import com.zm.xiaohashu.model.req.FindNoteContentReqDTO;
import com.zm.xiaohashu.model.resp.FindNoteContentRspDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = ApiConstants.SERVICE_NAME, path = "/kv")
public interface KeyValueFeignApi {


    @PostMapping("/note/content/add")
    Response<?> addNoteContent(@RequestBody AddNoteContentReqDTO addNoteContentReqDTO);

    @PostMapping(value = "/note/content/find")
    Response<FindNoteContentRspDTO> findNoteContent(@RequestBody FindNoteContentReqDTO findNoteContentReqDTO);

    @PostMapping(value = "/note/content/delete")
    Response<?> deleteNoteContent(@RequestBody DeleteNoteContentReqDTO deleteNoteContentReqDTO);
}
